package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TransactionLogsMapper;
import com.ruoyi.system.domain.TransactionLogs;
import com.ruoyi.system.service.ITransactionLogsService;

/**
 * 交易记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-25
 */
@Service
public class TransactionLogsServiceImpl implements ITransactionLogsService 
{
    @Autowired
    private TransactionLogsMapper transactionLogsMapper;

    /**
     * 查询交易记录
     * 
     * @param id 交易记录主键
     * @return 交易记录
     */
    @Override
    public TransactionLogs selectTransactionLogsById(Long id)
    {
        return transactionLogsMapper.selectTransactionLogsById(id);
    }

    /**
     * 查询交易记录列表
     * 
     * @param transactionLogs 交易记录
     * @return 交易记录
     */
    @Override
    public List<TransactionLogs> selectTransactionLogsList(TransactionLogs transactionLogs)
    {
        return transactionLogsMapper.selectTransactionLogsList(transactionLogs);
    }

    /**
     * 新增交易记录
     * 
     * @param transactionLogs 交易记录
     * @return 结果
     */
    @Override
    public int insertTransactionLogs(TransactionLogs transactionLogs)
    {
        return transactionLogsMapper.insertTransactionLogs(transactionLogs);
    }

    /**
     * 修改交易记录
     * 
     * @param transactionLogs 交易记录
     * @return 结果
     */
    @Override
    public int updateTransactionLogs(TransactionLogs transactionLogs)
    {
        return transactionLogsMapper.updateTransactionLogs(transactionLogs);
    }

    /**
     * 批量删除交易记录
     * 
     * @param ids 需要删除的交易记录主键
     * @return 结果
     */
    @Override
    public int deleteTransactionLogsByIds(Long[] ids)
    {
        return transactionLogsMapper.deleteTransactionLogsByIds(ids);
    }

    /**
     * 删除交易记录信息
     * 
     * @param id 交易记录主键
     * @return 结果
     */
    @Override
    public int deleteTransactionLogsById(Long id)
    {
        return transactionLogsMapper.deleteTransactionLogsById(id);
    }
}
